Skip to content

CLN: assorted #46181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2022
Merged

CLN: assorted #46181

merged 1 commit into from
Mar 1, 2022

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@mroeschke mroeschke added the Clean label Mar 1, 2022
@mroeschke mroeschke added this to the 1.5 milestone Mar 1, 2022
@jreback jreback merged commit 7001e9a into pandas-dev:main Mar 1, 2022
@jbrockmendel jbrockmendel deleted the fixmes-40 branch March 1, 2022 16:30
bint is_datetimelike,
bint skipna=True) -> None:
def group_cumprod_float64(
float64_t[:, ::1] out,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@realead i stumbled on your indirect_buffer repo and thought you might have some advice on further optimizing some_type[:, ::1] out in cases where out was created with np.empty(shape, dtype=whatever). Can we get extra mileage with something like view.indirect_contiguous?

(Just commented on this PR bc the diff included a line with the syntax of interest)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in cases where out was created with np.empty(shape, dtype=whatever). Can we get extra mileage with something like view.indirect_contiguous?

IIIC: No. Numpy arrays don't support indirect layout - their layout is always direct. indirect layout would make sense e.g. for combining multiple 1D-numpy arrays into one 2D-buffer without copying the data from the original numpy arrays. I don't see how this can be applied here - as you have pointed out, out will be created by np.empty, so it has direct layout - nothing to be improved upon.

yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants